class Product {
  final int id;
  final String name;
  final String price;
  final String description;
  final String imageUrl;
  final bool upgrade;
  final int categoryId;
  final int subcategoryId;
  Product({
    required this.id,
    required this.name,
    required this.price,
    required this.description,
    required this.imageUrl,
    required this.upgrade,
    required this.categoryId,
    required this.subcategoryId,
  });
}

class Category {
  final int id;
  final String name;
  final String price;
  final String description;
  final List<Subcategory> subcategories;

  Category({
    required this.id,
    required this.name,
    required this.price,
    required this.description,
    required this.subcategories,
  });
}

class Subcategory {
  final int id;
  final String name;
  final bool free;
  Subcategory({
    required this.id,
    required this.name,
    required this.free,
  });
}

// 示例数据
final List<Category> demoCategories = [
  Category(
      id: 1,
      name: '标准版',
      price: '299/元/月',
      description: '适用20间以下小型酒店',
      subcategories: [
        Subcategory(id: 1, name: '酒店组网（包含）', free: false),
        Subcategory(id: 2, name: '酒店应用（赠送）', free: true),
        Subcategory(id: 3, name: '酒店增值服务', free: false)
      ]),
  Category(
      id: 2,
      name: '旗舰版',
      price: '1599/元/月',
      description: '适用20-50间中小型酒店',
      subcategories: [
        Subcategory(id: 4, name: '酒店组网（包含）', free: false),
        Subcategory(id: 5, name: '酒店应用（包含）', free: false),
        Subcategory(id: 6, name: '酒店增值服务', free: false)
      ]),
  Category(
      id: 3,
      name: '豪华版',
      price: '2399/元/月',
      description: '适用50-200间中大型酒店',
      subcategories: [
        Subcategory(id: 7, name: '酒店组网（包含）', free: false),
        Subcategory(id: 8, name: '酒店应用（包含）', free: false),
        Subcategory(id: 9, name: '酒店增值服务', free: false)
      ]),
  Category(
      id: 4,
      name: '增值服务',
      price: '',
      description: '',
      subcategories: [Subcategory(id: 10, name: '增值服务', free: false)]),
];

final List<Product> demoProducts = [
  // 标准版
  Product(
    id: 1,
    name: '酒店专用千兆宽带',
    description: '酒店专用千兆宽带',
    price: '1000M',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 1,
    subcategoryId: 1,
  ),
  Product(
    id: 2,
    name: '酒店前台专用wifi',
    description: '酒店前台专用wifi',
    price: '399元',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 1,
    subcategoryId: 1,
  ),
  Product(
    id: 3,
    name: '通话语音',
    description: '通话语音',
    price: '500分钟/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 1,
    subcategoryId: 2,
  ),
  Product(
    id: 4,
    name: '手机流量',
    description: '手机流量',
    price: '100G/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 1,
    subcategoryId: 2,
  ),
  Product(
    id: 5,
    name: '酒店完美联盟',
    description: '加装25元/月/间',
    upgrade: false,
    price: '赠送10间',
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 1,
    subcategoryId: 3,
  ),
  Product(
    id: 6,
    name: '视频监控',
    description: '',
    price: '35元/月/个',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 1,
    subcategoryId: 3,
  ),
  Product(
    id: 7,
    name: '千兆宽带',
    description: '酒店专用',
    price: '1000M',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 2,
    subcategoryId: 4,
  ),
  Product(
    id: 8,
    name: '全光组网',
    description: '1-1',
    price: '2999元',
    upgrade: true,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 2,
    subcategoryId: 4,
  ),
  Product(
    id: 9,
    name: '固话3连号',
    description: '尾号5/6/7/8',
    price: '10000元',
    upgrade: true,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 2,
    subcategoryId: 5,
  ),
  Product(
    id: 10,
    name: '视频监控',
    description: '3个高清监控、7天云回看',
    price: '1200元',
    upgrade: true,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 2,
    subcategoryId: 5,
  ),
  Product(
    id: 11,
    name: 'PAD电脑二合一',
    description: '中兴云PAD',
    price: '1999元',
    upgrade: true,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 2,
    subcategoryId: 5,
  ),
  Product(
    id: 12,
    name: '商业彩铃',
    description: 'AI',
    price: '30元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 2,
    subcategoryId: 5,
  ),
  Product(
    id: 13,
    name: '酒店完美联盟',
    description: '赠送50间，加装20元',
    price: '1500元',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 2,
    subcategoryId: 6,
  ),
  Product(
    id: 14,
    name: '视频监控',
    description: 'AI',
    price: '30元/月/个',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 2,
    subcategoryId: 6,
  ),
  Product(
    id: 15,
    name: '千兆宽带',
    description: '酒店专用',
    price: '1000M',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 7,
  ),
  Product(
    id: 16,
    name: '全光组网',
    description: '1-4',
    price: '3999元',
    upgrade: true,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 7,
  ),
  Product(
    id: 17,
    name: '固话3连号',
    description: '尾号5/6/7/8',
    price: '10000元',
    upgrade: true,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 8,
  ),
  Product(
    id: 18,
    name: '视频监控',
    description: '5个高清监控、30天云回看',
    price: '2000元',
    upgrade: true,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 8,
  ),
  Product(
    id: 19,
    name: 'PAD电脑二合一*2',
    description: '中兴云PAD',
    price: '3998元',
    upgrade: true,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 8,
  ),
  Product(
    id: 20,
    name: '商业彩铃',
    description: 'AI',
    price: '30元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 8,
  ),
  Product(
    id: 21,
    name: '手机语音及流量',
    description: '',
    price: '150G/月  2000分钟/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 8,
  ),
  Product(
    id: 22,
    name: '售后保障服务',
    description: '',
    price: '7*24小时运营维护',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 8,
  ),
  Product(
    id: 23,
    name: '酒店完美联盟',
    description: '赠送50间，加装20元',
    price: '1500元',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 9,
  ),
  Product(
    id: 24,
    name: '视频监控',
    description: 'AI',
    price: '30元/月/个',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 3,
    subcategoryId: 9,
  ),
  Product(
    id: 25,
    name: '全光组网',
    description: '1-1',
    price: '200元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  ),
  Product(
    id: 26,
    name: '全光组网子路由',
    description: '',
    price: '100元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  ),
  Product(
    id: 28,
    name: '定制版酒店ITV开机画面',
    description: '',
    price: '10元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  ),
  Product(
    id: 29,
    name: '30天全天云回看',
    description: '',
    price: '30元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  ),
  Product(
    id: 30,
    name: '60天全天云回看',
    description: '',
    price: '60元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  ),
  Product(
    id: 31,
    name: '90天全天云回看',
    description: '',
    price: '90元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  ),
  Product(
    id: 32,
    name: '智能音响',
    description: '',
    price: '30元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  ),
  Product(
    id: 33,
    name: '智能电视',
    description: '',
    price: '200元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  ),
  Product(
    id: 34,
    name: 'PAD电脑二合一',
    description: '',
    price: '79元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  ),
  Product(
    id: 35,
    name: '慧推广',
    description: '',
    price: '29元/月',
    upgrade: false,
    imageUrl: 'assets/images/kuandai.png',
    categoryId: 4,
    subcategoryId: 10,
  )
];
